Device identification using a memory profile

ABSTRACT

In accordance with an embodiment of the present invention, a method for identification of a semiconductor device having a plurality of memory blocks, comprises accessing a memory profile for the semiconductor device based at least in part on an identification of defective memory blocks of the semiconductor device and determining a unique identifier for the semiconductor device based at least in part on the memory profile of the semiconductor device.

TECHNICAL FIELD OF THE INVENTION

[0001] The present invention relates generally to the field of semiconductor devices, and more particularly to identification of a storage device using its memory profile.

BACKGROUND OF THE INVENTION

[0002] Semiconductor devices, such as integrated circuits, are manufactured in batches with an intent to make the chips identical. Batch manufacturing of the chips is useful in lowering manufacturing costs. However, it is desirable to be able to distinguish an individual integrated circuit from others, for example to track its source of manufacture, or to identify a system employing the integrated circuit. Individually identifiable integrated circuits may be used to validate transactions, route messages, track items, recover stolen goods, etc. Further, many such devices which conform to certain security protocols are required to have unique identifiers. The devices may have unique encryption keys to make it difficult to hack into the devices.

SUMMARY OF THE INVENTION

[0003] In accordance with an embodiment of the present invention, a method for identification of a semiconductor device having a plurality of memory blocks, comprises accessing a memory profile for the semiconductor device based at least in part on an identification of defective memory blocks of the semiconductor device and determining a unique identifier for the semiconductor device based at least in part on the memory profile of the semiconductor device.

[0004] In accordance with another embodiment of the present invention, a user device comprises a memory device having a plurality of memory blocks for storing data and a unique memory device identifier assigned to the memory device, the memory device identifier determined based at least in part on a memory profile of the memory device, the memory profile based at least in part on an identification of defective memory blocks in the memory device.

BRIEF DESCRIPTION OF THE DRAWINGS

[0005] For a more complete understanding of the present invention, the objects and advantages thereof, reference is now made to the following descriptions taken in connection with the accompanying drawings in which:

[0006]FIG. 1 is a block diagram of a user device incorporating a semiconductor device in which embodiments of the invention may be used to advantage;

[0007]FIG. 2A is a flowchart of an exemplary method for uniquely identifying a semiconductor device in accordance with an embodiment of the present invention;

[0008]FIG. 2B is a flowchart of an exemplary method for uniquely identifying a semiconductor device in accordance with another embodiment of the present invention; and

[0009]FIG. 3 is a flowchart of an exemplary method for determining an identifier for a semiconductor device in accordance with an embodiment of the present invention.

DETAILED DESCRIPTION OF THE DRAWINGS

[0010] The preferred embodiment of the present invention and its advantages are best understood by referring to FIGS. 1 through 3 of the drawings, like numerals being used for like and corresponding parts of the various drawings.

[0011] There is a desire for uniquely identifying a semiconductor device, e.g. a memory device. In accordance with one embodiment of the present invention, a method for uniquely identifying the semiconductor device based on its memory profile uses information contained in a mapping table to determine an identifier which may be used to uniquely identify the semiconductor device. A mapping table is typically created to map a plurality of continuous logical addresses to physical addresses of the memory blocks which comprise the semiconductor device. By mapping the logical addresses around defective memory blocks, a mapping table that is unique to the semiconductor device for which it is created may be obtained.

[0012]FIG. 1 is a block diagram of a user device 10 incorporating a semiconductor device 12 in which embodiments of the invention may be used to advantage. User device 10 may be a personal computer, a cell phone, a personal digital assistant, a camera, a scanner, a smart card, a smart implant, a smart badge, a home appliance, a memory card and/or the like. Semiconductor device 12 may be a memory device capable of storing data, for example a Random Access Memory (RAM), a Dynamic Random Access Memory (DRAM), a Static Random Access Memory (SRAM), a Pseudo Static Random Access Memory (PSRAM), a Magnetic Random Access Memory (MRAM), and/or other memory device now known or later developed. The terms “semiconductor device” and “memory device” are used interchangeably herein. Memory device 12 preferably comprises a plurality of memory blocks 16, each memory block 16 capable of storing a fixed amount of data. Memory block 16 may comprise a plurality of memory elements.

[0013]FIG. 2A is an exemplary flowchart of a method 20 for uniquely identifying semiconductor device 12 in accordance with an embodiment of the present invention. Method 20 may be used by the manufacturer of semiconductor device 12, the manufacturer of user device 10, etc.

[0014] Memory device 12 may have imperfections or defects caused, for example, during manufacturing of memory device 12. Because of these imperfections one or more blocks 16 of memory device 12 may become unsuitable for storing data. As such, memory device 12 is typically manufactured with spare blocks of memory to be used in place of and to compensate for the reduction in storage capacity of memory device 12 resulting from the defective blocks. Thus, even if one or more blocks 16 of memory device 12 may be unusable, memory device 12 may still perform according to its specifications. A determination 22 is made as to whether memory device 12 has imperfections. This determination may be made by using test equipment. In order to make this determination, the test equipment repeatedly writes data to and reads data from the memory elements of memory device 12 to test the ability of memory device 12 to properly store and return data. The testing is preferably performed with varying parameters to ensure proper operation across a range of operating specifications. If memory device 12 does not have any imperfections, then the process ends.

[0015] However, if it is determined that memory device 12 has defects, then a determination 24 is made as to which blocks of memory device 12 are defective. This determination may be made by determining the memory elements of memory device 12 that are defective and then determining the blocks to which those memory elements belong. The physical addresses of the defective memory blocks may be determined.

[0016] It is desirable that applications running on user device 10 are not aware of the imperfections in memory device 12. A set of continuous addresses to access the memory blocks of memory device 12 is therefore desirable. However, because some of the blocks of memory device 12 may be defective, it is not possible to have a set of continuous physical addresses that may be used to address the blocks of memory device 12. Therefore, in order to provide a set of continuous addresses which may be used to reference memory blocks 16, logical addresses are used. Logical addresses point to those physical blocks in memory device 12 which are not defective.

[0017] In order for memory device 12 to perform according to its specifications, it is desirable that memory device 12 comprise enough number of spare blocks so that the logical addresses may be mapped around the defective blocks to the non-defective blocks. As such, a determination 26 is made as to whether there are enough spare blocks available in memory device 12. If the desired number of spare blocks are not available, then the process terminates because memory device 12 will not conform to specifications and may be scrapped. Otherwise, the process starting at block 28 is executed.

[0018] A mapping table 11 (FIG. 1) is created 28 for memory device 12. Any method, now known or later developed, for creating the mapping table may be used. The mapping table comprises a plurality of logical addresses and a plurality of physical addresses, and specifies the mapping between the plurality of logical addresses and the plurality of physical addresses. Preferably, at least one mapping table that maps the logical addresses around the defective blocks, for example by mapping the logical addresses to the physical address of the non-defective blocks in memory device 12, is created. This results in at least some of the logical addresses which would otherwise have been mapped to the defective blocks being mapped to the spare blocks. An entry in the mapping table provides the proper translation from a logical address or a range of logical addresses to a physical address or a range of physical addresses for non-defective blocks. The mapping table may be used to convert a logical address to the corresponding physical address and to convert a physical address to the corresponding logical address.

[0019] Because there are a large number of blocks in memory device 12 and the number and physical addresses of the defective blocks varies from device to device, the mapping table is unique to the memory device for which it is created. The mapping table therefore provides a profile of the memory device which is unique to the memory device. An exemplary mapping table for an exemplary memory device is shown in Table I. TABLE I LOGICAL ADDRESS PHYSICAL ADDRESS 0 0 9 22 1003 5685 10001 25683

[0020] In the example of Table I, logical addresses 0 through 8 are mapped to physical addresses 0 through 8, respectively. However, in the exemplary memory device, blocks with physical addresses 9 through 21 are defective. Therefore, logical addresses 9 through 1002 are mapped to physical addresses 22 through 1015 respectively. In the exemplary memory device, blocks with physical addresses 1016 through 5684 are defective. Therefore, logical addresses 1003 through 10000 are mapped to physical addresses 5685 through 14682. In the exemplary memory device, blocks with physical addresses 14683 through 25682 are defective. Therefore, logical addresses 10001 onwards are mapped to physical addresses 25683 onwards. It should be noted that Table I provides a simplified example of a mapping table in order to illustrate the operations of the present invention.

[0021] An identifier 13 for memory device 12 (FIG. 1) is determined 30 based at least in part on the mapping table. Identifier 13 is preferably unique to memory device 12. A flowchart of an exemplary method 30 for determining an identifier for memory device 12 in accordance with an embodiment of the present invention is provided in FIG. 3 and described below. The unique identifier is assigned 32 to memory device 12. The resulting identifier may be stored in memory device 12 itself. If desired, the resulting identifier may be stored in an external microprocessor, for example a microprocessor (not shown) associated with user device 10. It should be noted that blocks 22-28 are typically done during semiconductor memory device fabrication or device testing. Therefore, a mapping table is typically available for use by the embodiments of the present invention.

[0022]FIG. 2B is a flowchart of an exemplary method 15 for uniquely identifying semiconductor device 12 in accordance with another embodiment of the present invention. Method 15 may be used by the manufacturer of semiconductor device 12, the manufacturer of user device 10, etc.

[0023] In block 17, a memory profile of memory device 12 is accessed. In an exemplary embodiment, mapping table 11 provides the memory profile of memory device 12. In block 19, identifier 13 for memory device 12 (FIG. 1) is determined based at least in part on the memory profile. Identifier 13 is preferably unique to memory device 12. A flowchart of an exemplary method for determining an identifier for memory device 12 in accordance with an embodiment of the present invention is provided in FIG. 3 and described herein. The unique identifier is assigned 21 to memory device 12.

[0024]FIG. 3 is a flowchart of an exemplary method 30 for determining an identifier for memory device 12 in accordance with an embodiment of the present invention. In block 42, the number of non-defective blocks desired in memory device 12 is calculated. The desired number of non-defective blocks may be calculated by dividing the desired capacity of memory device 12 by the size of each block. For example, if the desired capacity of a DRAM is 64 MB and the size of each block in the DRAM is 512 bytes, then the number of desired non-defective blocks in the DRAM is (64 MB/512B=) 131,072. In block 44, the desired size, such as the number of bits, of the identifier (ID) for memory device 12 is determined. The size of the identifier may be set by the manufacturer of memory device 12 or by the manufacturer of user device 10. In block 46, the value of an offset is calculated. The value of the offset may be calculated for example by using the following formula:

offset=2^((Size of identifier−Size of address used to reference each memory block))

[0025] For example, if the desired size of the identifier is 32 bits and the bit size (Y) of the address used to reference each block in memory device 12 is 17, then the value of the offset is (2³²⁻¹⁷=) 32,768. If desired, the bit size of the address used to reference each memory block may be calculated, for example, by using the following formula:

2^(Y)=Number of desired non-defective blocks.

[0026] For example, if the desired number of non-defective blocks is 131,072, then the value of Y is 17.

[0027] In block 48, the identifier (ID) for memory device 12 is initialized, preferably to zero. In block 50, a counter I is initialized, preferably to zero. In block 52, the value of the identifier is updated. Preferably, the value of the identifier is updated based at least in part on an entry in the mapping table. For example, the value of the identifier may be updated by using the following formula:

ID=ID+(logical address of entry I in the mapping table*offset)+physical address of entry I in the mapping table

[0028] In block 54, a determination is made as to whether there are any more entries in the mapping table. If there are additional entries in the mapping table, in block 56, the counter I is incremented and the process starting at block 52 may be executed to update the value of the identifier. Otherwise, block 32 of FIG. 2A is executed to assign the identifier to memory device 12.

[0029] Method 30 of FIG. 3 for calculating a memory device identifier is only an exemplary method for calculating the memory device identifier. Any method may be used for this purpose so long as information relating to the imperfect memory profile of the memory device is used. The particular method suitable for any given memory device may depend on one or more of the following factors: the desired size of the identifier, the expected percentage of defective blocks and/or the like.

[0030] The present invention may be implemented in software, hardware, or a combination of both software and hardware. The software and/or hardware may be associated with or stored in the equipment used to manufacture memory device 12 or with user device 10 or in memory device 12 itself. If desired, the different blocks discussed herein may be executed in any order and/or concurrently with each other. Furthermore, if desired, one or more of the above described blocks may be optional or may be combined without departing from the scope of the present invention. A technical advantage of an exemplary embodiment of the present invention is that unique identifiers may be generated for different memory devices. 

What is claimed is:
 1. A method for identification of a semiconductor device having a plurality of memory blocks, comprising: accessing a memory profile for said semiconductor device based at least in part on an identification of defective memory blocks of said semiconductor device; and determining a unique identifier for said semiconductor device based at least in part on said memory profile of said semiconductor device.
 2. The method of claim 1, further comprising assigning said unique identifier to said semiconductor device.
 3. The method of claim 1, further comprising storing said unique identifier in said semiconductor device.
 4. The method of claim 1, further comprising creating said memory profile based at least in part on a mapping of a plurality of logical addresses associated with said semiconductor device to selected ones of said plurality of memory blocks.
 5. The method of claim 1, further comprising creating said memory profile based at least in part on a mapping of a plurality of logical addresses associated with said semiconductor device to the physical addresses of selected non-defective memory blocks of said plurality of memory blocks.
 6. The method of claim 1, further comprising creating a memory profile having a mapping table comprising at least one entry, each of said at least one entry mapping a logical address to the physical address of a non-defective block of said plurality of memory blocks.
 7. The method of claim 6, further comprising calculating said unique identifier based at least in part on said at least one entry.
 8. The method of claim 1, further comprising determining a desired bit size of said unique identifier.
 9. The method of claim 8, further comprising determining an offset based at least in part on said desired bit size of said unique identifier and the number of said plurality of memory blocks.
 10. The method of claim 9, further comprising calculating said unique identifier based at least in part on said offset.
 11. A method for identification of a semiconductor device having a plurality of memory blocks, comprising: mapping a plurality of logical addresses of said semiconductor device to selected memory blocks; and determining a unique device identifier for said semiconductor device based at least in part on said mapping of said plurality of logical addresses.
 12. The method of claim 11, further comprising assigning said unique device identifier to said semiconductor device.
 13. The method of claim 11, wherein said mapping comprises mapping said plurality of logical addresses to physical addresses of said selected memory blocks, each of said selected memory blocks being non-defective.
 14. The method of claim 11, further comprising determining an offset based at least in part on a desired bit size of said unique device identifier.
 15. The method of claim 14, further comprising calculating said unique device identifier based at least in part on said offset.
 16. A method for identification of a semiconductor device having a plurality of memory blocks, comprising: accessing a mapping table mapping a plurality of logical addresses of said semiconductor device to selected ones of said plurality of memory blocks; and determining a unique device identifier for said semiconductor device based at least in part on said mapping table.
 17. The method of claim 16, further comprising assigning said unique device identifier to said semiconductor device.
 18. The method of claim 16, further comprising creating at least one entry in said mapping table, each entry mapping a logical address of said plurality of logical addresses to the physical address of a non-defective block of said memory blocks.
 19. The method of claim 16, further comprising determining a desired size of said unique device identifier.
 20. The method of claim 19, further comprising determining an offset based at least in part on said desired size of said unique device identifier and the number of said plurality of memory blocks.
 21. The method of claim 20, further comprising calculating said device identifier based at least in part on said offset.
 22. A user device, comprising: a memory device having a plurality of memory blocks for storing data; and a unique memory device identifier assigned to said memory device, said memory device identifier determined based at least in part on a mapping table comprising information relating to mapping of a plurality of logical addresses of said memory device to selected ones of said plurality of memory blocks.
 23. The user device of claim 22, wherein said mapping table comprises at least one entry, wherein each of said at least one entry maps a logical address of said plurality of logical addresses to a physical address of a memory block of said selected ones of said memory blocks.
 24. The user device of claim 23, wherein each of said selected ones of said memory blocks is non-defective.
 25. The user device of claim 22, wherein said mapping table is stored in said memory device.
 26. A user device, comprising: a memory device having a plurality of memory blocks for storing data; and a unique memory device identifier assigned to said memory device, said memory device identifier based at least in part on a memory profile of said memory device, said memory profile based at least in part on an identification of defective memory blocks in said memory device.
 27. The user device of claim 26, wherein said memory profile comprises a mapping table mapping a plurality of logical addresses of said memory device to selected ones of said memory blocks.
 28. The user device of claim 27, wherein said selected ones of said plurality of memory blocks are non-defective memory blocks of said memory device.
 29. A system for identification of a semiconductor device having a plurality of memory blocks, comprising: application logic operable to: access a memory profile for said semiconductor device based at least in part on an identification of defective memory blocks of said semiconductor device; and determine a unique identifier for said semiconductor device based at least in part on said memory profile of said semiconductor device.
 30. The system of claim 29, wherein said application logic is further operable to assign said unique identifier to said semiconductor device.
 31. The system of claim 29, wherein said application logic is further operable to store said unique identifier in said semiconductor device.
 32. The system of claim 29, wherein said application logic is further operable to create said memory profile based at least in part on a mapping of a plurality of logical addresses associated with said semiconductor device to selected ones of said memory blocks.
 33. The system of claim 29, wherein said application logic is further operable to create said memory profile based at least in part on a mapping of a plurality of logical addresses associated with said semiconductor device to the physical addresses of selected non-defective memory blocks of said memory blocks.
 34. The system of claim 29, wherein said application logic is further operable to create a memory profile having a mapping table comprising at least one entry, each of said at least one entry mapping a logical address to the physical address of a non-defective block of said plurality of memory blocks.
 35. The system of claim 34, wherein said application logic is further operable to calculate said unique identifier based at least in part on said at least one entry.
 36. The system of claim 29, wherein said application logic is further operable to determine a desired bit size of said unique identifier.
 37. The system of claim 36, wherein said application logic is further operable to determine an offset based at least in part on said desired bit size of said unique identifier and the number of said plurality of memory blocks.
 38. The system of claim 37, wherein said application logic is further operable to calculate said unique identifier based at least in part on said offset.
 39. A computer-readable medium having stored thereon a plurality of instructions, including a set of instructions for identification of a semiconductor device having a plurality of memory blocks, said set of instructions, when executed by a processor, cause said processor to perform a computer method of: accessing a memory profile for said semiconductor device based at least in part on an identification of defective memory blocks of said semiconductor device; and determining a unique identifier for said semiconductor device based at least in part on said memory profile of said semiconductor device.
 40. The computer readable medium of claim 39, wherein said set of instructions, when executed by said processor, further cause said processor to perform a computer method of assigning said unique identifier to said semiconductor device.
 41. The computer readable medium of claim 39, wherein said set of instructions, when executed by said processor, further cause said processor to perform a computer method of storing said unique identifier in said semiconductor device.
 42. The computer readable medium of claim 39, wherein said set of instructions, when executed by said processor, further cause said processor to perform a computer method of creating said memory profile based at least in part on a mapping of a plurality of logical addresses associated with said semiconductor device to selected ones of said plurality of memory blocks.
 43. The computer readable medium of claim 39, wherein said set of instructions, when executed by said processor, further cause said processor to perform a computer method of creating said memory profile based at least in part on a mapping of a plurality of logical addresses associated with said semiconductor device to the physical addresses of selected non-defective memory blocks of said plurality of memory blocks.
 44. The computer readable medium of claim 39, wherein said set of instructions, when executed by said processor, further cause said processor to perform a computer method of creating a memory profile having a mapping table comprising at least one entry, each of said at least one entry mapping a logical address to the physical address of a non-defective block of said plurality of memory blocks.
 45. The computer readable medium of claim 44, wherein said set of instructions, when executed by said processor, further cause said processor to perform a computer method of calculating said unique identifier based at least in part on said at least one entry.
 46. The computer readable medium of claim 39, wherein said set of instructions, when executed by said processor, further cause said processor to perform a computer method of determining a desired bit size of said unique identifier.
 47. The computer readable medium of claim 46, wherein said set of instructions, when executed by said processor, further cause said processor to perform a computer method of determining an offset based at least in part on said desired bit size of said unique identifier and the number of said plurality of memory blocks. 